package com.example.myproject.domain;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * @author 程序猿DD
 * @version 1.0.0
 * @blog http://blog.didispace.com
 *
 */
@ApiModel("用户对象")
public class User {
    @ApiModelProperty(value="id")
    private Long id;
    private String name;
    private Integer age;
    private Boolean deleted;
    private Long longVar;
    private Double doubleVar;
    private Float floatVar;
    private BigDecimal bigDecimalVar;
    private Date dateVar;

    public String getName() {
        return name;
    }

    public Long getLongVar() {
        return longVar;
    }

    public void setLongVar(Long longVar) {
        this.longVar = longVar;
    }

    public Double getDoubleVar() {
        return doubleVar;
    }

    public void setDoubleVar(Double doubleVar) {
        this.doubleVar = doubleVar;
    }

    public Float getFloatVar() {
        return floatVar;
    }

    public void setFloatVar(Float floatVar) {
        this.floatVar = floatVar;
    }

    public BigDecimal getBigDecimalVar() {
        return bigDecimalVar;
    }

    public void setBigDecimalVar(BigDecimal bigDecimalVar) {
        this.bigDecimalVar = bigDecimalVar;
    }

    public Date getDateVar() {
        return dateVar;
    }

    public void setDateVar(Date dateVar) {
        this.dateVar = dateVar;
    }

    private Integer[] array;

    public Integer[] getArray() {
        return array;
    }

    public void setArray(Integer[] array) {
        this.array = array;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    public User(){}

    public User(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
